.class Lcom/direction/hold/FileApp$1;
.super Landroid/os/Handler;


# instance fields
.field private synthetic a:Lcom/direction/hold/FileApp;


# direct methods
.method constructor <init>(Lcom/direction/hold/FileApp;)V
    .locals 0

    iput-object p1, p0, Lcom/direction/hold/FileApp$1;->a:Lcom/direction/hold/FileApp;

    invoke-direct {p0}, Landroid/os/Handler;-><init>()V

    return-void
.end method


# virtual methods
.method public handleMessage(Landroid/os/Message;)V
    .locals 7

    const-string v6, "ftime"

    const-string v5, "file"

    invoke-super {p0, p1}, Landroid/os/Handler;->handleMessage(Landroid/os/Message;)V

    const/4 v0, 0x0

    invoke-static {v0}, Lcom/umeng/update/UmengUpdateAgent;->setUpdateOnlyWifi(Z)V

    iget-object v0, p0, Lcom/direction/hold/FileApp$1;->a:Lcom/direction/hold/FileApp;

    const-string v1, "file"

    const-string v1, "ftime"

    const-class v1, Ljava/lang/Long;

    invoke-static {v0, v5, v6, v1}, Lcn/cheln/support/app/e;->a(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Class;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/Long;

    invoke-virtual {v0}, Ljava/lang/Long;->longValue()J

    move-result-wide v1

    const-wide/16 v3, -0x1

    cmp-long v1, v1, v3

    if-eqz v1, :cond_0

    if-nez v0, :cond_1

    :cond_0
    iget-object v1, p0, Lcom/direction/hold/FileApp$1;->a:Lcom/direction/hold/FileApp;

    const-string v2, "file"

    const-string v2, "ftime"

    invoke-static {}, Ljava/util/Calendar;->getInstance()Ljava/util/Calendar;

    move-result-object v2

    invoke-virtual {v2}, Ljava/util/Calendar;->getTimeInMillis()J

    move-result-wide v2

    invoke-static {v2, v3}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v2

    invoke-static {v1, v5, v6, v2}, Lcn/cheln/support/app/e;->a(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Object;)V

    :cond_1
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v1

    invoke-virtual {v0}, Ljava/lang/Long;->longValue()J

    move-result-wide v3

    sub-long v0, v1, v3

    const-wide/32 v2, 0x240c8400

    cmp-long v0, v0, v2

    if-lez v0, :cond_2

    iget-object v0, p0, Lcom/direction/hold/FileApp$1;->a:Lcom/direction/hold/FileApp;

    invoke-static {v0}, Lcom/umeng/update/UmengUpdateAgent;->update(Landroid/content/Context;)V

    iget-object v0, p0, Lcom/direction/hold/FileApp$1;->a:Lcom/direction/hold/FileApp;

    const-string v1, "file"

    const-string v1, "ftime"

    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v1

    invoke-static {v1, v2}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v1

    invoke-static {v0, v5, v6, v1}, Lcn/cheln/support/app/e;->a(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Object;)V

    :cond_2
    return-void
.end method
